/**
 * 文件信息
 */
import {RuleConfig} from "./rule-config";

export class FileInfo {

  /**
   * 名称
   */
  public name:string;
  /**
   * 路径
   */
  public filePath:string;
  /**
   * 文件所在路径
   */
  public fileDir: string ;
  /**
   * 扩展名
   */
  public ext:string;
  /**
   * 图片的exif信息
   */
  public imgExif:any;

  public targetDir:string[] = []
  /**
   * 新文件名
   */
  public targetName?:string
  public fileData:any;
  public config?:RuleConfig

  constructor(name: string, filePath: string, fileDir: string, ext: string) {
    this.name = name;
    this.filePath = filePath;
    this.fileDir = fileDir;
    this.ext = ext;
  }

  public addSubDir(dir:string){
    this.targetDir.push(dir)
  }

}
